package cn.wolfcode.luowowo.search.query;

import cn.wolfcode.luowowo.common.query.QueryObject;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;

@Getter
@Setter
public class DestinationSearchQuery extends QueryObject {
    private Long themeId;
    private Long month;
    private Long days;
    public Pageable getPageable(){
        //参数1:当前页-1
        //参数2:每页显示条数
        return PageRequest.of(super.getCurrentPage()-1, super.getPageSize());
    }

}
